<!--/**
 * Plugin Name: 论坛展示型app
 * Description: uloug.com To develop and share! Please keep the copyright information!
 * Author: 拾讯网
 * Author URI: http://www.uloug.com
 * Version: 1.0
 * Plugin URI: https://git.oschina.net/858598758/apicloud.mao10.app.demo.git
 * License: GPL2+
 */-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<title>title</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<style>
			.aui-content .app-logo {
				position: relative;
				margin: 0 auto;
				width: 100%;
				text-align: center;
				padding: 50px 0;
			}
			.aui-content .app-logo > img {
				width: 60px;
				height: 60px;
			}
			.aui-content .app-logo > p {
				padding: 12px 0 0 0;
			}
			.aui-content .app-logo > p > span, #app_data > p > span {
				color: #FF3100;
				font-weight: 600;
			}
			#app_data {
				text-align: center;
			}
			#app_data > p {
				padding-top: 5px;
			}
		</style>
	</head>
	<body>
		<div class="aui-content">
			<div class="app-logo">
				<img src="../../image/aui-icon.png"/>
				<p>
					当前版本：<span id="app_version">获取中</span>
				</p>
			</div>
		</div>
		<div class="aui-content">
			<div class="aui-card aui-noborder">
				<ul class="aui-list-view">
					<li class="aui-list-view-cell" data-win="list_arrow">
						去评价
					</li>
					<li class="aui-list-view-cell" data-win="list_thumb">
						欢迎页
					</li>
					<li class="aui-list-view-cell" data-win="list-image">
						邀请好友
					</li>
					<li class="aui-list-view-cell" data-win="list-image">
						意见反馈
					</li>
				</ul>
			</div>
		</div>
		<div class="aui-content">
			<div id="app_data">
				<!--<p>您使用的是huawei，android4.4.2</p>
				<p>当前使用网络：wifi</p>
				<p>拾昧生活 感谢您的使用</p>
				<p>温馨提示：流量是命，请使用Wifi访问</p>-->
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		apiready = function() {
			//获取设备
			var appVersion = api.appVersion;
			var appName = api.appName;
			//比如： AppLoader
			var systemType = api.systemType;
			// 比如： iOS
			var systemVersion = api.systemVersion;
			// 比如： 8.0
			var deviceModel = api.deviceModel;
			// 比如： iPhone 5
			var deviceName = api.deviceName;
			// 比如：“柚子”的 iPhone
			var operator = api.operator;
			// 比如：中国移动
			var connectionType = api.connectionType;
			//比如： wifi
			//
			$api.html($api.byId('app_version'), appVersion);
			// 网络判断
			if (connectionType == 'wifi') {
				$api.html($api.byId('app_data'), '<p>您使用的是' + deviceName + '，' + systemType + '' + systemVersion + '</p>' + '<p>当前使用网络：' + connectionType + '</p><p>拾昧生活 感谢您的使用</p><p>温馨提示：<span>尽情浏览吧</span></p>');
			} else if (connectionType == 'none') {
				$api.html($api.byId('app_data'), '<p><span>亲，没网了还调戏人家~~~</span></p>');
			} else {
				$api.html($api.byId('app_data'), '<p>您使用的是' + deviceName + '，' + systemType + '' + systemVersion + '</p>' + '<p>当前使用网络：' + connectionType + '</p><p>拾昧生活 感谢您的使用</p><p>温馨提示：<span>流量是命，请使用wifi访问</span></p>');
			};
			
		}
	</script>
</html>